

/*---------------------------------------------------------
   Initializes the effect. The data is a table of data 
   which was passed from the server.
---------------------------------------------------------*/
function EFFECT:Init( data )
	
	local pos = data:GetOrigin()
	local emitter = ParticleEmitter( pos )
	
	for i=1,10 do
		local particle = emitter:Add( "effects/blood_core", pos )
		particle:SetVelocity(VectorRand() * 30)
		particle:SetDieTime( math.Rand(0.5,0.7) )
		particle:SetStartAlpha( 150 )
		particle:SetEndAlpha( 1 )
		particle:SetStartSize( 5 )
		particle:SetEndSize( 0 )
		particle:SetRoll( math.Rand( 0, 360 ) )
		particle:SetColor( 0, 160, 30 )
	end
	
	emitter:Finish()
	
end


/*---------------------------------------------------------
   THINK
   Returning false makes the entity die
---------------------------------------------------------*/
function EFFECT:Think( )
	return false
end


/*---------------------------------------------------------
   Draw the effect
---------------------------------------------------------*/
function EFFECT:Render()
	
end



